﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Items
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div id="content">
  
<h2>Items</h2>

<hr /><hr />  

    <table>
        <thead>
            <tr>
                <th style="width:150px;"></th>
                <th style="width:150px;">Name</th>
                <th style="width:420px;">Description</th>
                <th style="width:75px;text-align:center;">Year</th>
                <th>Price</th>
            </tr>
        </thead>
        <tbody>
            <% foreach (var item in Model.Item)
               { %>
            <tr id="<%= Html.Encode(item.Id) %>">
                <td><img alt="Image" src="<%= Html.Encode(item.PictureLocation) %>" height="150px" width="150px"/></td>
                <td style="text-align:center;"><%= Html.Encode(item.Name) %></td>
                <td><%= Html.Encode(item.Description)%></td>
                <td style="text-align:center;"><%= Html.Encode(item.Year)%></td>
                <td><%= Html.Encode(item.Price)%></td>
            </tr>
            <% } %>
        </tbody>
    </table>

</div>

</asp:Content>
